﻿namespace SERFLITEMAX20.WinUI.Controls
{
    using System;

    public class ListViewDateSort : ListViewTextSort
    {
        public ListViewDateSort(int sortColumn, bool ascending) : base(sortColumn, ascending)
        {
        }

        protected override int OnCompare(string lhs, string rhs)
        {
            return DateTime.Parse(lhs).CompareTo(DateTime.Parse(rhs));
        }
    }
}

